module.exports = {
  preset: 'ts-jest',
  testEnvironment: 'node',
  transform: {
      '^.+\\.[jt]sx?$': 'ts-jest',
  },
  moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
  testMatch: ['**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts'],
  collectCoverageFrom: [
      '**/*.ts',
      '!**/*.d.ts',
  ],
  moduleNameMapper: {
      '^@server/(.*)': '<rootDir>/server/$1',
      '^@/(.*)': '<rootDir>/src/$1',
  },
  testTimeout: 5000,
  setupFilesAfterEnv: ['<rootDir>/test/setup.ts'],
};
